﻿using System;
using System.ComponentModel;
using DevExpress.Xpo;
using DevExpress.Data.Filtering;
using DevExpress.ExpressApp;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;
using DevExpress.Persistent.Validation;
namespace Top.Module.Domain
{
    [DefaultClassOptions]
    public class TopArticleSub : BaseObject
    {
        //begin
        public TopArticleSub(Session session) : base(session)
        {}
        public override void AfterConstruction(){base.AfterConstruction();}

        private string _Nick;
        [Size(SizeAttribute.Unlimited)]
        public string Nick
        {
            get
            {
                return _Nick;
            }
            set
            {
                SetPropertyValue("Nick", ref _Nick, value);
            }
        }
        private string _ArticleName;
        [Size(SizeAttribute.Unlimited)]
        public string ArticleName
        {
            get
            {
                return _ArticleName;
            }
            set
            {
                SetPropertyValue("ArticleName", ref _ArticleName, value);
            }
        }
        private string _ArticleCode;
        [Size(SizeAttribute.Unlimited)]
        public string ArticleCode
        {
            get
            {
                return _ArticleCode;
            }
            set
            {
                SetPropertyValue("ArticleCode", ref _ArticleCode, value);
            }
        }
        private string _ItemName;
        [Size(SizeAttribute.Unlimited)]
        public string ItemName
        {
            get
            {
                return _ItemName;
            }
            set
            {
                SetPropertyValue("ItemName", ref _ItemName, value);
            }
        }
        private string _ItemCode;
        [Size(SizeAttribute.Unlimited)]
        public string ItemCode
        {
            get
            {
                return _ItemCode;
            }
            set
            {
                SetPropertyValue("ItemCode", ref _ItemCode, value);
            }
        }
        private DateTime _Deadline;
        public DateTime Deadline
        {
            get
            {
                return _Deadline;
            }
            set
            {
                SetPropertyValue("Deadline", ref _Deadline, value);
            }
        }
        private long _Status;
        public long Status
        {
            get
            {
                return _Status;
            }
            set
            {
                SetPropertyValue("Status", ref _Status, value);
            }
        }
        private bool _Autosub;
        public bool Autosub
        {
            get
            {
                return _Autosub;
            }
            set
            {
                SetPropertyValue("Autosub", ref _Autosub, value);
            }
        }
        private bool _ExpireNotice;
        public bool ExpireNotice
        {
            get
            {
                return _ExpireNotice;
            }
            set
            {
                SetPropertyValue("ExpireNotice", ref _ExpireNotice, value);
            }
        }
        //end
    }
}
